package cn.sxt.logistics.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2020-06-13
 */
@TableName("t_permission")
public class Permission implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "permission_id", type = IdType.AUTO)
      private Long permissionId;

    private String pname;

    private String type;

    private String url;

    private String expression;

    private Long parentId;

    
    public Long getPermissionId() {
        return permissionId;
    }

      public void setPermissionId(Long permissionId) {
          this.permissionId = permissionId;
      }
    
    public String getPname() {
        return pname;
    }

      public void setPname(String pname) {
          this.pname = pname;
      }
    
    public String getType() {
        return type;
    }

      public void setType(String type) {
          this.type = type;
      }
    
    public String getUrl() {
        return url;
    }

      public void setUrl(String url) {
          this.url = url;
      }
    
    public String getExpression() {
        return expression;
    }

      public void setExpression(String expression) {
          this.expression = expression;
      }
    
    public Long getParentId() {
        return parentId;
    }

      public void setParentId(Long parentId) {
          this.parentId = parentId;
      }

    @Override
    public String toString() {
        return "Permission{" +
              "permissionId=" + permissionId +
                  ", pname=" + pname +
                  ", type=" + type +
                  ", url=" + url +
                  ", expression=" + expression +
                  ", parentId=" + parentId +
              "}";
    }
}
